package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domain.Dish;
import com.itheima.dto.DishDto;

import java.util.List;

/**
 * @author Morty
 * @create 2022 09 24 15:30
 */
public interface DishService extends IService<Dish> {

    public void saveWithFlavor(DishDto dishDto);

    //根据id查询菜品信息和对应的口味信息
    public DishDto getByIdWithFlavor(Long id);

    //更新菜品信息，同时更新对应的口味信息
    public void updateWithFlavor(DishDto dishDto);

    public void deleteByIdsWithFlavor(List<Long> ids);

    void updateStatus(int status, List<Long> ids);
}
